package com.TwinBlade.PicturePassword;

import android.graphics.Matrix;
import android.graphics.PointF;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;
import android.view.View.OnTouchListener;

class ct
  implements View.OnTouchListener
{
  ct(TouchImageView paramTouchImageView)
  {
  }

  public boolean onTouch(View paramView, MotionEvent paramMotionEvent)
  {
    TouchImageView.e(this.a).onTouchEvent(paramMotionEvent);
    PointF localPointF = new PointF(paramMotionEvent.getX(), paramMotionEvent.getY());
    switch (paramMotionEvent.getAction())
    {
    case 3:
    case 4:
    case 5:
    default:
    case 0:
    case 2:
    case 1:
    case 6:
    }
    while (true)
    {
      this.a.setImageMatrix(TouchImageView.d(this.a));
      this.a.invalidate();
      return true;
      TouchImageView.f(this.a).set(localPointF);
      TouchImageView.g(this.a).set(TouchImageView.f(this.a));
      this.a.a = 1;
      continue;
      if (this.a.a == 1)
      {
        float f1 = localPointF.x - TouchImageView.f(this.a).x;
        float f2 = localPointF.y - TouchImageView.f(this.a).y;
        float f3 = this.a.b(f1, this.a.b, this.a.d * TouchImageView.a(this.a));
        float f4 = this.a.b(f2, this.a.c, this.a.e * TouchImageView.a(this.a));
        TouchImageView.d(this.a).postTranslate(f3, f4);
        this.a.a();
        TouchImageView.f(this.a).set(localPointF.x, localPointF.y);
        continue;
        this.a.a = 0;
        int i = (int)Math.abs(localPointF.x - TouchImageView.g(this.a).x);
        int j = (int)Math.abs(localPointF.y - TouchImageView.g(this.a).y);
        if ((i < 3) && (j < 3))
        {
          this.a.performClick();
          continue;
          this.a.a = 0;
        }
      }
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.ct
 * JD-Core Version:    0.6.2
 */